﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using KPIS.GERP.ESS.MODEL;
using KPIS.GERP.ESS.DAL;

namespace KPIS.GERP.ESS.BLL
{
    public class B_SECURITY_Users
    {
        ConvertNullable.ConvertNullable cn = new ConvertNullable.ConvertNullable();
        private static readonly D_SECURITY_Users dal = new D_SECURITY_Users();
        //D_FIM_MAS_Receives r = new D_FIM_MAS_Receives();

        public B_SECURITY_Users()
        {

        }
        public DataTable GetUserInfo(string strUserID, string PassWord)
        {
            return dal.GetUserInfo(strUserID, PassWord);
        }
        public DataTable GetUserInfo(int empSeq)
        {
            return dal.GetUserInfo(empSeq);
        }
        public DataTable GetMenuItemList(string strUserID, string strSystemID)
        {
            return dal.GetMenuItemList(strUserID, strSystemID);
        }
        public bool CheckPassword(string Sequence, string OldPassword)
        {
            return dal.CheckPassword(Sequence, OldPassword);
        }
        public void ChangePassword(int Sequence, string Password, int UpdatedBy)
        {
            dal.ChangePassword(Sequence, Password, UpdatedBy);
        }
        public bool CheckIsApprover(string emp_seq)
        {
            return dal.CheckIsApprover(emp_seq);
        }
    }
}
